package net.xdclass.order.component.strategy;

import lombok.extern.slf4j.Slf4j;
import net.xdclass.order.component.PayStrategy;
import net.xdclass.order.enums.ProductOrderPayTypeEnum;
import net.xdclass.order.model.vo.PayInfoVO;
import org.springframework.stereotype.Component;


@Slf4j
@Component
public class WeChatStrategy implements PayStrategy {


    /**
     * 下单
     *
     * @param payInfo
     */
    @Override
    public String unifiedOrder(PayInfoVO payInfo) {
        return null;
    }

    /**
     * 退款
     *
     * @param payinfo
     */
    @Override
    public String refund(PayInfoVO payinfo) {
        return PayStrategy.super.refund(payinfo);
    }

    /**
     * 查询订单状态
     *
     * @param payInfo
     */
    @Override
    public String queryPayState(PayInfoVO payInfo) {
        return PayStrategy.super.queryPayState(payInfo);
    }

    @Override
    public ProductOrderPayTypeEnum supportType() {
        return ProductOrderPayTypeEnum.WECHAT;
    }
}
